package com.itany.ems.util;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/13 13:37
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class ParameterUtil {

    public static boolean isNull(String s){
        return null == s || "".equals(s);
    }


    public static String checkHobby(String hobbies,String hobby){
        if(!ParameterUtil.isNull(hobbies)){
            String[] arr = hobbies.split(",");
            for(String s : arr){
                if(s.equals(hobby)){
                    return "checked";
                }
            }
        }
        return "";
    }

}
